﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GlobalSkillManager : MonoBehaviour
{
    public static GlobalSkillManager _instance;
#region 预设
    [Header("预设角色")]
    /// <summary>
    /// 角色预设
    /// </summary>
    public GameObject RedRoleModel;
    public GameObject BlueRoleModel;

    [Space]
    [Header("角色生成点")] public Transform[] SpawnPos;
#endregion

    private void Awake()
    {
        _instance = this;
    }

    #region 角色管理

    /// <summary>
    /// todo 实例化两方的角色
    /// </summary>
    public void InitBothRoles()
    {
        //todo 收到服务器消息实例化双方角色
        //todo 实例化特效对象池
    }

    /// <summary>
    /// 开始游戏生命周期
    /// </summary>
    public void StartGameProgress()
    {
        //todo 开始本局生命周期
    }

    /// <summary>
    /// 角色获取技能
    /// </summary>
    public void RoleGetSkill(int RoleId, int SkillId)
    {
        
    }

    /// <summary>
    /// 角色丢失技能
    /// </summary>
    public void RoleLoseSkill(int RoleId, int SkillId)
    {

    }

#endregion
}
